import request from '@/utils/request';
// 总览
// stock
export async function getFundTwoStockPosition() {
  return request('/fss/Position/StockAllPosition', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
// option
export async function getOptionAmend() {
  return request(`/fss/ErveryProfit/GetOptionInfo?type=${1}`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
// AQDQ
export async function getAQDQ() {
  return request('/fss/Aqdq/AqdqList', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
// RCN

// 票据列表
export async function getBillGrade(province) {
  return request(`/fss/CxBill/BillGrade`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    body: JSON.stringify(province),
  });
}

// Parts
export async function getBondPart() {
  return request(`/fss/CpbMail/BondPart`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getStockPart() {
  return request(`/fss/CpbMail/StockPart`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getAqPart() {
  return request(`/fss/CpbMail/AqPart`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getDqPart() {
  return request(`/fss/CpbMail/DqPart`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getOptionPart() {
  return request(`/fss/CpbMail/OptionPart`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getForexOptionPart() {
  return request(`/fss/CpbMail/ForexOptionPart`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getHedgeFundPart() {
  return request(`/fss/CpbMail/HedgeFundPart`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getAllPart(param) {
  return request(`/fss/CpbMail/AllPart?date=${param}`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}

//sl
export async function getOptionLong() {
  return request(`/fss/OptionPosition/OptionLong`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getOptionShortBp() {
  return request(`/fss/OptionPosition/OptionShortBp`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getOptionShortSc() {
  return request(`/fss/OptionPosition/OptionShortSc`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getExposureTable() {
  return request(`/fss/Position/ExposureTable`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getStockAllPositionLong() {
  return request(`/fss/Position/StockAllPositionLong`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getStockAllPositionShort() {
  return request(`/fss/Position/StockAllPositionShort`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getCpbMailDate(param) {
  return request(`/fss/CpbMail/CpbMailDate`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
